﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ResourceBlender_Express {
    /// <summary>
    /// Makes logging progress during import/export operations easier
    /// </summary>
    public class StatusMessage {
        public delegate void StatusChangedEventHandler(StatusMessage message);
        /// <summary>
        /// Gets or sets the message.
        /// </summary>
        /// <value>The message.</value>
        public string Message { get; set; }
        /// <summary>
        /// Gets or sets whether the message is an error.
        /// </summary>
        /// <value><c>true</c> if the message is an error, otherwise <c>false</c>.</value>
        public bool Error { get; set; }

        /// <summary>
        /// Initializes a new <see cref="StatusMessage"/>.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="error"><c>true</c> if the message is an error, otherwise <c>false</c>.</value>
        public StatusMessage(string message, bool error) {
            Message = message;
            Error = error;
        }
    }
}
